<?php
$config = array(
                 'dsl_signup_customer_details' => array(
               array(
                     'field'   => 'first_name',
                     'label'   => 'First name',
                     'rules'   => 'required'
                  ),
               array(
                     'field'   => 'last_name',
                     'label'   => 'Last name',
                     'rules'   => 'required'
                  ),
               array(
                     'field'   => 'salutation',
                     'label'   => 'Salutation',
                     'rules'   => 'required'
                  ),
               array(
                     'field'   => 'address',
                     'label'   => 'Address',
                     'rules'   => 'required'
                  ),
               array(
                     'field'   => 'state',
                     'label'   => 'State',
                     'rules'   => 'required'
                  ),
               array(
                     'field'   => 'surburb',
                     'label'   => 'Surburb',
                     'rules'   => 'required'
                  ),
               array(
                     'field'   => 'post_code',
                     'label'   => 'Post Code',
                     'rules'   => 'required|integer|exact_length[4]'
                  ),
               array(
                     'field'   => 'contact_number',
                     'label'   => 'Contact Number',
                     'rules'   => 'required'
                  ),
               array(
                     'field'   => 'mobile_number',
                     'label'   => 'Mobile Number',
                     'rules'   => 'required'
                  ),
               array(
                     'field'   => 'email_address',
                     'label'   => 'Email Address',
                     'rules'   => 'required|valid_email'
                  ),
               array(
                     'field'   => 'dob_year',
                     'label'   => 'Date of Birth',
                     'rules'   => 'required|integer|exact_length[4]'
                  )
            ),
                 'email' => array(
                                    array(
                                            'field' => 'emailaddress',
                                            'label' => 'EmailAddress',
                                            'rules' => 'required|valid_email'
                                         ),
                                    array(
                                            'field' => 'name',
                                            'label' => 'Name',
                                            'rules' => 'required|alpha'
                                         ),
                                    array(
                                            'field' => 'title',
                                            'label' => 'Title',
                                            'rules' => 'required'
                                         ),
                                    array(
                                            'field' => 'message',
                                            'label' => 'MessageBody',
                                            'rules' => 'required'
                                         )
                                    )
               );

?>
